import Vue from 'vue'
import { register } from '@neu/biz-core/main'
import routes, { topMenus } from './router'
import dcam from '@neu/dcam-ui/store/dcam'
import dcom from '@neu/dcom-ui/store/dcom'
import cmdb from '@neu/cmdb-ui/store/cmdb'
import install from '@neu/dcom-ui/components/InputControls'

install(Vue)

import './styles/index.scss'

register({
  topMenus,
  router: routes,
  siteTitle: '资源管理及运维平台',
  store: [{
    moduleName: 'dcam',
    store: dcam
  }, {
    moduleName: 'dcom',
    store: dcom,
    autoRun: ['dcom/getProjectUserInfo']
  }, {
    moduleName: 'cmdb',
    store: cmdb
  }
  ]
})
